/*  Hier befinden sich alle Funktionen, die die Datenrichtungsregister 
	und Grundpineinstellung setzen.
*/

#include "init_port.h"

// LED-Module-Pin initialisieren
void init_ledmodul()
{
	LED_CLOCK_DDR |=(1<<LED_CLOCK_PIN);
	LED_RESET_DDR |=(1<<LED_RESET_PIN);
	LED_RESET_PORT |=(1<<LED_RESET_PIN);
	LED_SELECT1_DDR |=(1<<LED_SELECT1_PIN);
	LED_SELECT2_DDR |=(1<<LED_SELECT2_PIN);
	LED_SELECT3_DDR |=(1<<LED_SELECT3_PIN);
	LED_SELECT4_DDR |=(1<<LED_SELECT4_PIN);
	LED_SELECT5_DDR |=(1<<LED_SELECT5_PIN);
	LED_BRIGHT1_DDR |=(1<<LED_BRIGHT1_PIN);
	LED_BRIGHT2_DDR |=(1<<LED_BRIGHT2_PIN);
	LED_RED_Z1_DDR |=(1<<LED_RED_Z1_PIN);
	LED_GREEN_Z1_DDR |=(1<<LED_GREEN_Z1_PIN);
	LED_RED_Z2_DDR |=(1<<LED_RED_Z2_PIN);
	LED_GREEN_Z2_DDR |=(1<<LED_GREEN_Z2_PIN);
}

// Status LED init
void init_std_device()
{
// 	PWR_ON_DDR |= (1<<PWR_ON_PIN);
// 	PWR_ON_PORT |= (1<<PWR_ON_PIN);
	STATE_GREEN_DDR |=(1<<STATE_GREEN_PIN);
	STATE_RED_DDR |=(1<<STATE_RED_PIN);
}

